/* eslint-disable eol-last */
/* eslint-disable indent */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import './css/reset.css'
import ZLM from '../pdm.layout.js'
import _g from './helpers/global'
import VideoPlayer from 'vue-video-player'
import axios from 'axios'
import ElementUI from 'element-ui'

Vue.use(ElementUI)
Vue.prototype.$http = axios
Vue.use(VideoPlayer)
Vue.config.productionTip = false

window.zlm = ZLM
window._g = _g
window.axios = axios

const bus = new Vue()
window.bus = bus

axios.defaults.baseURL = '/' // 开发本地代理
axios.defaults.timeout = 1000 * 15
    // axios.defaults.headers.Authorization = ''
axios.defaults.headers['Content-Type'] = 'application/x-www-form-urlencoded'
    // axios.defaults.headers.Origin = null
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')